package com.eedi.framework.sms.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 短信的发送状态枚举
 *
 * @author zzf
 * @date 2021/2/1 13:39
 */
@Getter
@AllArgsConstructor
@ToString
public enum SmsSendStatusEnum implements BaseEnum<Integer,String> {
    // 初始化
    INIT(0,"初始化"),
    // 发送成功
    SUCCESS(10,"发送成功"),
    // 发送失败
    FAILURE(20,"发送失败"),
    // 忽略，即不发送
    IGNORE(30,"忽略，即不发送"),
    ;

    private final int status;
    private final String desc;

    @Override
    public Integer getCode() {
        return this.status;
    }

    @Override
    public String title() {
        return "短信的发送状态";
    }
}
